package com.zg.autoflow.req;

import com.zg.common.core.dao.autoflow.entity.AutoflowStepSub;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
* @author zg
*/
@Data
public class AutoflowSubAddReq {
    /**
    * 主键ID
    */
    private Long id;
    /**
    * 条件字段1
    */
    @NotBlank(message = "条件1不能为空")
    private String field;
    /**
    * 字段1的值
    */
    @NotBlank(message = "值1不能为空")
    private String fieldValue;
    /**
    * 条件字段2
    */
    private String field2;
    /**
    * 字段2的值
    */
    private String field2Value;
    /**
    * 分支的名字
    */
    @NotBlank(message = "分支名称不能为空")
    private String name;
    /**
    * 流程code
    */
    @NotBlank(message = "流程code不能为空")
    private String flowCode;
    /**
     *环节信息
     */
    @NotEmpty(message = "环节信息不能不空")
    private List<AutoflowStepSub> stepSubVos;
}
